/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.stt.staff.entity;

import com.jeeplus.modules.stt.department.entity.SysDepartment;
import com.jeeplus.modules.stt.typeofwork.entity.TypeOfWork;
import javax.validation.constraints.NotNull;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import lombok.Data;

/**
 * 员工信息Entity
 * @author stt
 * @version 2022-10-07
 */
@Data
public class Staff extends DataEntity<Staff> {
	
	private static final long serialVersionUID = 1L;
	@ExcelField(title="编号", align=2, sort=1)
	private String number;		// 编号
	@ExcelField(title="姓名", align=2, sort=2)
	private String name;		// 姓名
	@ExcelField(title="部门名称", fieldType=SysDepartment.class, value="department.name", align=2, sort=3)
	private SysDepartment department;		// 部门名称
	@ExcelField(title="工种名称", fieldType=TypeOfWork.class, value="typeofwork.name", align=2, sort=4)
	private TypeOfWork typeofwork;		// 工种名称
	@ExcelField(title="底薪", align=2, sort=5)
	private Double baseSalary;		// 底薪
//    @NotNull(message="社保金额不能为空")
	@ExcelField(title="社保金额", align=2, sort=6)
	private Double socialMoney;		// 社保金额
//    @NotNull(message="医保金额不能为空")
	@ExcelField(title="医保金额", align=2, sort=7)
	private Double medicalMoney;		// 医保金额
//    @NotNull(message="失业保险金额不能为空")
	@ExcelField(title="失业保险金额", align=2, sort=8)
	private Double unemploymentMoney;		// 失业保险金额
//    @NotNull(message="工会金额不能为空")
	@ExcelField(title="工会金额", align=2, sort=9)
	private Double labourMoney;		// 工会金额
//    @NotNull(message="工资不能为空")
	@ExcelField(title="工资", align=2, sort=10)
	private Double wages;		// 工资
	
	public Staff() {
		super();
	}
	
	public Staff(String id){
		super(id);
	}
}